package com.butterfly.hotkey.dashboard.biz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 规则表
 * </p>
 *
 * @author butterfly
 * @since 2024-11-05
 */
@TableName("hk_rules")
public class Rules implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属APP
     */
    private String app;

    /**
     * 规则JSON
     */
    private String rules;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新人
     */
    private String updater;


    public Long getId() {
        return id;
    }

    public Rules setId(Long id) {
        this.id = id;
        return this;
    }

    public String getApp() {
        return app;
    }

    public Rules setApp(String app) {
        this.app = app;
        return this;
    }

    public String getRules() {
        return rules;
    }

    public Rules setRules(String rules) {
        this.rules = rules;
        return this;
    }

    public Integer getVersion() {
        return version;
    }

    public Rules setVersion(Integer version) {
        this.version = version;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Rules setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreator() {
        return creator;
    }

    public Rules setCreator(String creator) {
        this.creator = creator;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public Rules setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getUpdater() {
        return updater;
    }

    public Rules setUpdater(String updater) {
        this.updater = updater;
        return this;
    }

    @Override
    public String toString() {
        return "Rules{" +
                "id=" + id +
                ", app=" + app +
                ", rules=" + rules +
                ", version=" + version +
                ", createTime=" + createTime +
                ", creator=" + creator +
                ", updateTime=" + updateTime +
                ", updater=" + updater +
                "}";
    }
}
